Alexander Larsson [Thu, 25 Nov 2010 19:39:17 +0000 (20:39 +0100)]
[broadway] Disable context menu so rmb works
Alexander Larsson [Thu, 25 Nov 2010 19:32:54 +0000 (20:32 +0100)]
[broadway] Only change window positioning for toplevels not e.g. menus
Alexander Larsson [Thu, 25 Nov 2010 19:07:26 +0000 (20:07 +0100)]
[broadway] Don't have mouse_in_toplevel point to hidden or destroyed window
Alexander Larsson [Thu, 25 Nov 2010 12:25:56 +0000 (13:25 +0100)]
[broadway] Only allow one input session
Alexander Larsson [Thu, 25 Nov 2010 12:25:36 +0000 (13:25 +0100)]
[broadway] Handle errors in input nicer
Also, fix a leak
Alexander Larsson [Thu, 25 Nov 2010 12:23:11 +0000 (13:23 +0100)]
[broadway] Only open one websocket for input!
Alexander Larsson [Thu, 25 Nov 2010 12:08:13 +0000 (13:08 +0100)]
Move send_error up
Alexander Larsson [Thu, 25 Nov 2010 12:03:52 +0000 (13:03 +0100)]
Save current input request
Alexander Larsson [Thu, 25 Nov 2010 11:43:01 +0000 (12:43 +0100)]
[broadway] Remove old unused declarations
Alexander Larsson [Thu, 25 Nov 2010 11:40:33 +0000 (12:40 +0100)]
[broadway] Avoid crash if mask is NULL
Alexander Larsson [Thu, 25 Nov 2010 11:40:22 +0000 (12:40 +0100)]
[broadway] Fix warning
Alexander Larsson [Thu, 25 Nov 2010 11:33:07 +0000 (12:33 +0100)]
Move event generation to gdkeventsource.c
Alexander Larsson [Wed, 24 Nov 2010 21:12:50 +0000 (22:12 +0100)]
Handle output errors correctly
Alexander Larsson [Wed, 24 Nov 2010 21:12:29 +0000 (22:12 +0100)]
[broadway] Track errors in BroadwayOutput
Alexander Larsson [Wed, 24 Nov 2010 21:02:30 +0000 (22:02 +0100)]
[broadway] Fix typo in assignment
Alexander Larsson [Wed, 24 Nov 2010 20:57:30 +0000 (21:57 +0100)]
[broadway] Convert broadway.c to use glib stuff
Alexander Larsson [Wed, 24 Nov 2010 20:48:12 +0000 (21:48 +0100)]
[broadway] Keep track of the GSocketConnection for the output
Alexander Larsson [Wed, 24 Nov 2010 20:40:25 +0000 (21:40 +0100)]
Rename BroadwayClient to BroadwayOutput
Alexander Larsson [Wed, 24 Nov 2010 20:40:05 +0000 (21:40 +0100)]
[broadway] Fix warning in demo
Alexander Larsson [Wed, 24 Nov 2010 20:28:38 +0000 (21:28 +0100)]
[broadway] Initialize masks to zero everywhere to avoid valgrind warnings
Alexander Larsson [Wed, 24 Nov 2010 18:41:19 +0000 (19:41 +0100)]
Move global window list to per-display
Alexander Larsson [Tue, 23 Nov 2010 12:00:45 +0000 (13:00 +0100)]
[broadway] Hack up window placement for demo
Alexander Larsson [Tue, 23 Nov 2010 11:52:10 +0000 (12:52 +0100)]
[broadway] Implement window resize
Alexander Larsson [Tue, 23 Nov 2010 11:51:45 +0000 (12:51 +0100)]
[broadway] NULL out ref_surface on resize too
Alexander Larsson [Mon, 22 Nov 2010 12:07:49 +0000 (13:07 +0100)]
[broadway] Add some fuzz to rectangle scanner
We don't want a bazillion tiny rectangles, so add some fuzz
to the rectangle scanners so we get less but larger rectangles.
Alexander Larsson [Sun, 21 Nov 2010 23:00:37 +0000 (00:00 +0100)]
[broadway] Switch autocrop to smarter rectangle search
Alexander Larsson [Sun, 21 Nov 2010 23:00:05 +0000 (00:00 +0100)]
[broadway] Add realloc wrapper
Alexander Larsson [Sun, 21 Nov 2010 21:12:39 +0000 (22:12 +0100)]
[broadway] Fix up scrolling
Alexander Larsson [Sun, 21 Nov 2010 19:46:50 +0000 (20:46 +0100)]
[broadway] Handle window moves
Alexander Larsson [Sun, 21 Nov 2010 19:46:14 +0000 (20:46 +0100)]
[broadway] Implement _gdk_windowing_window_at_device_position
Alexander Larsson [Sun, 21 Nov 2010 19:45:50 +0000 (20:45 +0100)]
[broadway] Track last mouse position
Alexander Larsson [Sun, 21 Nov 2010 19:03:52 +0000 (20:03 +0100)]
[broadway] Fix x/y mismatch in canvas position
Alexander Larsson [Sun, 21 Nov 2010 18:53:19 +0000 (19:53 +0100)]
Fix some type warnings
Alexander Larsson [Sun, 21 Nov 2010 18:52:05 +0000 (19:52 +0100)]
[broadway] Send diffs as bilevel rgba instead of true diff
The true diff only works if the destination keeps perfect 32bit
canvas data, which is not always true. So, instead we send only
changed pixels, masking the others to 0 via alpha 0.
Alexander Larsson [Sat, 20 Nov 2010 21:39:40 +0000 (22:39 +0100)]
[broadway] Send and use canvas ids in events
Alexander Larsson [Sat, 20 Nov 2010 21:38:34 +0000 (22:38 +0100)]
[broadway] Track window<->id mapping
Alexander Larsson [Sat, 20 Nov 2010 21:37:54 +0000 (22:37 +0100)]
[broadway] Missed a place to use event time
Alexander Larsson [Sat, 20 Nov 2010 21:25:54 +0000 (22:25 +0100)]
[broadway] clean up input sending js
Alexander Larsson [Sat, 20 Nov 2010 21:11:54 +0000 (22:11 +0100)]
[broadway] Send event timestamps from client
Alexander Larsson [Fri, 19 Nov 2010 21:57:49 +0000 (22:57 +0100)]
[broadway] Allow loading client.html as "/" only
Alexander Larsson [Fri, 19 Nov 2010 21:37:57 +0000 (22:37 +0100)]
Remove unneeded copy of region
Alexander Larsson [Fri, 19 Nov 2010 21:37:26 +0000 (22:37 +0100)]
Fix button numbers in events (starts with 1, not 0)
Alexander Larsson [Fri, 19 Nov 2010 21:11:40 +0000 (22:11 +0100)]
[broadway] Initial work on mouse events
Alexander Larsson [Fri, 19 Nov 2010 20:56:35 +0000 (21:56 +0100)]
[broadway] remove some spew
Alexander Larsson [Fri, 19 Nov 2010 20:55:13 +0000 (21:55 +0100)]
[broadway] don't sync the root window
Alexander Larsson [Fri, 19 Nov 2010 20:54:17 +0000 (21:54 +0100)]
[brodway] Don't send 0x0 deltas, they confuse the client
Alexander Larsson [Fri, 19 Nov 2010 19:21:20 +0000 (20:21 +0100)]
Send mouse events from js
Alexander Larsson [Fri, 19 Nov 2010 13:13:13 +0000 (14:13 +0100)]
Initial sketch of websockets support
Alexander Larsson [Thu, 18 Nov 2010 21:21:16 +0000 (22:21 +0100)]
Don't put output on stdin, instead do it on http connection
Alexander Larsson [Thu, 18 Nov 2010 20:27:29 +0000 (21:27 +0100)]
Flesh out http server to handle client.html and broadway.js
Alexander Larsson [Thu, 18 Nov 2010 20:26:40 +0000 (21:26 +0100)]
Add makerules to turn client.html and broadway.js into #include files
Alexander Larsson [Thu, 18 Nov 2010 12:17:23 +0000 (13:17 +0100)]
Add initial http server
Alexander Larsson [Tue, 16 Nov 2010 21:56:59 +0000 (22:56 +0100)]
Add broadway javascript and html part
Alexander Larsson [Tue, 16 Nov 2010 21:11:53 +0000 (22:11 +0100)]
[broadway] Initial hookup of broadway client
Alexander Larsson [Tue, 16 Nov 2010 19:30:49 +0000 (20:30 +0100)]
[broadway] Fix up nvisuals handling
Alexander Larsson [Tue, 16 Nov 2010 19:28:54 +0000 (20:28 +0100)]
[broadway] Ensure gdk_ref_cairo_surface object can be destroyed
If we return a direct ref that is not possible, since we own a ref to it.
This is problematic as the gdkwindow.c code uses destruction to track
outstanding surfaces.
We fix this by returning a subsurface.
Alexander Larsson [Tue, 16 Nov 2010 12:16:38 +0000 (13:16 +0100)]
[broadway] Copy regions on last_surface during translations too
This will help make scrolling more efficient
Alexander Larsson [Tue, 16 Nov 2010 12:09:37 +0000 (13:09 +0100)]
Track last_surface properly
Alexander Larsson [Tue, 16 Nov 2010 11:42:53 +0000 (12:42 +0100)]
[broadway] Import broadway lib
We put this in gtk+ for now since it will be synced initially, but
it avoids using glib so that it can be used lower in the stack if
required (e.g. in cairo later).
Alexander Larsson [Tue, 16 Nov 2010 11:33:02 +0000 (12:33 +0100)]
[broadway] Rename X11 -> Broadway in all code
This just runs:
for i in *.[ch]; do
sed -i s/DisplayX11/DisplayBroadway/g $i;
sed -i s/PrivateX11/PrivateBroadway/g $i;
sed -i s/ImplX11/ImplBroadway/g $i;
sed -i s/KeymapX11/KeymapBroadway/g $i;
sed -i s/ScreenX11/ScreenBroadway/g $i;
sed -i s/GdkX11Monitor/GdkBroadwayMonitor/g $i;
sed -i s/_X11/_BROADWAY/g $i;
sed -i s/x11/broadway/g $i;
done
Alexander Larsson [Mon, 15 Nov 2010 21:12:04 +0000 (22:12 +0100)]
[broadway] Send MAP/UNMAP events for impl windows
Alexander Larsson [Mon, 15 Nov 2010 21:11:39 +0000 (22:11 +0100)]
[broadway] Implement window translation
Alexander Larsson [Mon, 15 Nov 2010 20:51:32 +0000 (21:51 +0100)]
[broadway] Track dirty windows
Alexander Larsson [Mon, 15 Nov 2010 20:44:38 +0000 (21:44 +0100)]
[broadway] Keep track of all (toplevel) windows
Alexander Larsson [Mon, 15 Nov 2010 19:08:18 +0000 (20:08 +0100)]
Remove X use from broadway backend
Alexander Larsson [Fri, 12 Nov 2010 22:00:52 +0000 (23:00 +0100)]
Remove X based dnd
Alexander Larsson [Fri, 12 Nov 2010 21:50:47 +0000 (22:50 +0100)]
Remove event translators
Alexander Larsson [Fri, 12 Nov 2010 12:18:58 +0000 (13:18 +0100)]
[broadway] Copy X backend to broadway
Tristan Van Berkom [Thu, 25 Nov 2010 05:37:02 +0000 (14:37 +0900)]
Changing GtkBox:fill child property default back to TRUE.
Since Havoc's patches introducing the GtkWidget halign/valign
properties, fill should always be TRUE. If the widget should
not fill its allocated space then it should set the halign or
valign properties for that purpose.
This also consequently fixes bug 634592.
Tristan Van Berkom [Thu, 25 Nov 2010 05:04:52 +0000 (14:04 +0900)]
Fixed GtkMenuShell to deactivate itself at dispose time
Since GdkDevice stuff, it seems that destroying an active
menu doesnt get rid of all the device grabery, this fixes
bug 635693.
Milan Bouchet-Valat [Wed, 24 Nov 2010 19:13:09 +0000 (20:13 +0100)]
Fix missing (transfer) annotations in GDK
Mostly missing (transfer none).
Michael Natterer [Wed, 24 Nov 2010 20:01:45 +0000 (21:01 +0100)]
Bug 565665 - GtkTargetEntry member target should be const char *
Michael Natterer [Wed, 24 Nov 2010 19:28:19 +0000 (20:28 +0100)]
gdk: remove GdkDeviceKey and GdkDeviceAxis from the public API
move GdkDeviceKey to gdkdevice.c because it's still used there, remove
GdkDeviceAxis entirely.
Michael Natterer [Wed, 24 Nov 2010 19:16:25 +0000 (20:16 +0100)]
gdk: gdk_device_get_n_keys() is now Since: 2.24
Benjamin Otte [Wed, 24 Nov 2010 15:44:16 +0000 (16:44 +0100)]
gtk: Remove GtkRuler
It is really bad code, mostly unused and no one stepped up to fix it.
Note that Gtk developers do not object to a ruler widget in priciple,
just to the current implementation. If someone wants to propose a sane
version, please don't hesitate.
https://bugzilla.gnome.org/show_bug.cgi?id=613942
Benjamin Otte [Wed, 24 Nov 2010 15:40:40 +0000 (16:40 +0100)]
gtk: Remove unused variables from build scripts
ALL_FILES and INCLUDE_VARIABLES are unused
Benjamin Otte [Wed, 24 Nov 2010 15:39:32 +0000 (16:39 +0100)]
gtk: Uncruftify gtk.symbols
Benjamin Otte [Wed, 24 Nov 2010 15:18:46 +0000 (16:18 +0100)]
gdk: Remove unused macros from build
Both ALL_FILES and INCLUDE_VARIABLES don't exist anymore
Benjamin Otte [Wed, 24 Nov 2010 15:15:47 +0000 (16:15 +0100)]
gdk: Clean up gdk.symbols file
Remove all the macro madness and sort it alphabetically.
Tor Lillqvist [Wed, 24 Nov 2010 12:36:18 +0000 (14:36 +0200)]
No fsync on Windows
Tor Lillqvist [Wed, 24 Nov 2010 12:26:53 +0000 (14:26 +0200)]
Fix compilation breakage in gdk/win32
John Ralls [Wed, 24 Nov 2010 00:52:24 +0000 (16:52 -0800)]
Replace references to sealed GdkDevice private variables with accessor calls in quartz.
Mario Blättermann [Tue, 23 Nov 2010 20:14:15 +0000 (21:14 +0100)]
[l10n] Updated German translation
Michael Natterer [Tue, 23 Nov 2010 19:25:13 +0000 (20:25 +0100)]
Move all GdkDevice members to private and add one missing accessor
Chris Kühl [Tue, 23 Nov 2010 09:48:44 +0000 (10:48 +0100)]
tests: Fixed argument naming inconsistancy
Colin Walters [Mon, 22 Nov 2010 19:42:50 +0000 (20:42 +0100)]
iconcache: Ensure we don't lose data on power loss
fsync() should ensure our data hits disk; since corrupt icon
caches break all apps, we need to ensure it's valid.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=635307
William Jon McCann [Sat, 20 Nov 2010 22:58:50 +0000 (17:58 -0500)]
Make gdk_event_apply_filters safe against changes in filter list
An event filter may add or remove filters itself. This patch does
two things to address this case. The first is to take a temporary
reference to the filter while it is being used. The second is
to wait until after the filter function is run before determining
the next node in the list to process. This guards against
changes to the next node. It also does not run functions
that have been marked as removed. Though I'm not sure if this
case can arise.
https://bugzilla.gnome.org/show_bug.cgi?id=635380
Javier Jardón [Sat, 20 Nov 2010 20:04:44 +0000 (21:04 +0100)]
docs: Add private structures to private sections
Javier Jardón [Sat, 20 Nov 2010 19:44:17 +0000 (20:44 +0100)]
docs: Add new GtkAssitant API to gtk3-sections
Javier Jardón [Sat, 20 Nov 2010 19:38:24 +0000 (20:38 +0100)]
docs: Add the new GtkScrollablePolicy API to gtk3-sections
Gheyret T.Kenji [Sat, 20 Nov 2010 10:56:21 +0000 (11:56 +0100)]
Added UG translation
Kjartan Maraas [Sat, 20 Nov 2010 10:48:08 +0000 (11:48 +0100)]
Updated Norwegian bokmål translation
John (J5) Palmieri [Fri, 19 Nov 2010 20:06:40 +0000 (15:06 -0500)]
[gi] add array annotations for DnD related methods
Michael Natterer [Fri, 19 Nov 2010 18:38:48 +0000 (19:38 +0100)]
gtk: remove GtkWidget::size-request
Fixes Bug 633324 - Stop invoking size-request completely
Martin Pitt [Fri, 19 Nov 2010 09:19:32 +0000 (10:19 +0100)]
GtkRadioButtons: Mark group arguments as "allow-none"
In the current introspection data, the various gtk_radio_button_new_*
constructors take an existing group or widget. These all allow passing a NULL
widget or group list, so that it becomes easy to build a radio button list in a
loop (pass in None the first time, and the previously created button in all
other iterations).
Add the missing "allow-none" tag to the introspection data, so that this will
also eventually work for GIR users. NB that it does not actually work for some
constructors yet (like new_with_label_from_widget()) due to
https://bugzilla.gnome.org/show_bug.cgi?id=561264.
https://bugzilla.gnome.org/show_bug.cgi?id=635253
Owen W. Taylor [Sun, 14 Nov 2010 14:38:32 +0000 (09:38 -0500)]
Create the icon pixmap with the system visual
Since what we are doing is turning an icon with alpha into a
no-alpha icon + mask for legacy window managers, it makes more sense
to use the system visual than the window's visual, which might
be ARGB.
https://bugzilla.gnome.org/show_bug.cgi?id=634821
Evan Martin [Fri, 12 Nov 2010 18:43:20 +0000 (10:43 -0800)]
docs: Copy GtkSizeGroup ownership discussion to GtkWindowGroup
The two behave identically, so the text is the same with s/size/window/.
Michael Natterer [Fri, 19 Nov 2010 13:55:47 +0000 (14:55 +0100)]
gtk: draw the frame around the spinbutton's buttons conditionally
(depending on GtkEntry::has-frame)
Javier Jardón [Fri, 19 Nov 2010 08:01:39 +0000 (09:01 +0100)]
configure: define GTK+ version before AC_INIT
So the gtk_version varibale will be defined
Javier Jardón [Fri, 19 Nov 2010 06:47:27 +0000 (07:47 +0100)]
gtkcombobox: Use accessor functions to access GtkTreeViewColumn